package com.frank.stock4j.tusharepro.bean;

import com.frank.stock4j.tusharepro.BaseBean;
import com.frank.stock4j.tusharepro.http.BaseRequestParam;

/**
* 描述：获取CPI居民消费价格数据，包括全国、城市和农村的数据
* @author: codesmith
**/
public interface CnCpiBean extends BaseBean {
    String API_NAME = "cn_cpi";
    
    interface Fields {
    String month = "month";    //月份YYYYMM
    String nt_val = "nt_val";    //全国当月至
    String nt_yoy = "nt_yoy";    //全国同比（%）
    String nt_mom = "nt_mom";    //全国环比（%）
    String nt_accu = "nt_accu";    //全国累计值
    String town_val = "town_val";    //城市当值月
    String town_yoy = "town_yoy";    //城市同比（%）
    String town_mom = "town_mom";    //城市环比（%）
    String town_accu = "town_accu";    //城市累计值
    String cnt_val = "cnt_val";    //农村当月值
    String cnt_yoy = "cnt_yoy";    //农村同比（%）
    String cnt_mom = "cnt_mom";    //农村环比（%）
    String cnt_accu = "cnt_accu";    //农村累计值
    }
    
    interface Params {
        m m = new m();
        /*
        * 月份（YYYYMM，下同），支持多个月份同时输入，逗号分隔
        */
        class m extends BaseRequestParam {
            { key = "m"; }
        }
        start_m start_m = new start_m();
        /*
        * 开始月份
        */
        class start_m extends BaseRequestParam {
            { key = "start_m"; }
        }
        end_m end_m = new end_m();
        /*
        * 结束月份
        */
        class end_m extends BaseRequestParam {
            { key = "end_m"; }
        }
    }
}